package com.zcoj.wx.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/8/19 13:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("wx_user")
public class WxUser implements Serializable {
	private static final long serialVersionUID = 2892248514883451461L;

	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer uid;
	private String openId;
	private String wxAvatar;
	private String wxName;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
